package com.pig4cloud.mall.product.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 运费模版
 *
 * @author fangyu
 * @date 2020-12-26 19:40:58
 */
@Data
@TableName("pms_freight_template")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "运费模版")
public class FreightTemplate extends Model<FreightTemplate> {
	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@TableId
	@ApiModelProperty(value = "")
	private Long id;
	/**
	 *
	 */
	@ApiModelProperty(value = "")
	private String name;
	/**
	 * 计费类型:0->按重量；1->按件数
	 */
	@ApiModelProperty(value = "计费类型:0->按重量；1->按件数")
	private Integer chargeType;
	/**
	 * 首重kg
	 */
	@ApiModelProperty(value = "首重kg")
	private BigDecimal firstWeight;
	/**
	 * 首费（元）
	 */
	@ApiModelProperty(value = "首费（元）")
	private BigDecimal firstFee;
	/**
	 *
	 */
	@ApiModelProperty(value = "")
	private BigDecimal continueWeight;
	/**
	 *
	 */
	@ApiModelProperty(value = "")
	private BigDecimal continueFee;
	/**
	 * 目的地（省、市）
	 */
	@ApiModelProperty(value = "目的地（省、市）")
	private String dest;
}
